package com.ftg.learn.mall.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ftg.learn.mall.entity.PmsProductAttributeCategory;
import com.ftg.learn.mall.mapper.PmsProductAttributeCategoryMapper;
import com.ftg.learn.mall.service.IPmsProductAttributeCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 产品属性分类表 服务实现类
 * </p>
 *
 * @author mallCommon
 * @since 2022-04-19
 */
@Service
public class PmsProductAttributeCategoryServiceImpl extends ServiceImpl<PmsProductAttributeCategoryMapper, PmsProductAttributeCategory> implements IPmsProductAttributeCategoryService {

    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    PmsProductAttributeCategoryMapper categoryMapper;

    @Override
    public List<PmsProductAttributeCategory> findAllAndPage(Page<PmsProductAttributeCategory> page) {
        return categoryMapper.findAllAndPage(page);
    }

    @Override
    public PmsProductAttributeCategory findById(Long id) {
        return categoryMapper.findById(id);
    }
}
